<?php

define("_IMPORT_TO_DB"                     , "TO_DB");

include_once "ImportToDb.php";

class Import{

  /**
   * init
   *
   * @param string  $selection  user selection
   * @param Misc    $ErrHdl
   */
  function init($selection, $ErrHdl){

    switch($selection){

      case _IMPORT_TO_DB:

        return new ImportToDb;
        break;

      default:

        $ErrHdl->usrDie("Error: Invalid Import Selection");
    }
  }
}

?>